'''
$LastChangedBy: csgillespie $
$LastChangedDate: 2007-06-06 11:08:06 +0000 (Wed, 06 Jun 2007) $
'''
import sys
DIR = '/data/ncsg3/svn/pythonR/BasisTools/trunk/'
sys.path.insert(0, DIR )
from pysbml import pysbml

#Create an empty model - Can also edit a previous model
e = pysbml().sbmlModel()
e.setId('LV_Model')
e.setNotes('<body xmlns="http://www.w3.org/1999/xhtml">\
        This is the tradional LV model</body>')

e.addCompartments(Id='Cell')
e.addSpecies(Id='ATP', Compartment='Cell', InitialAmount=0)
e.addSpecies(Id='ADP', Compartment='Cell', InitialAmount=0)
e.addReactions(Id='Conversion', listOfReactants=[{'Species':'ATP'}], listOfProducts=[{'Species':'ADP'}],\
	KineticLaw={'Formula':'a * ATP'})
e.addParameters(Id='a', Value=1)
print e.validate()

e.modifySpecies(ADP={'Id':'new_adp', 'InitialAmount':10})

e.deleteCompartments(['Cell'])

print e
